'use strict';

module.exports = appInfo => {
    const config = exports = {};

    // use for cookie sign key, should change to your own and keep security
    config.keys = appInfo.name + '_1522489946132_1153';

    // add your config here
    config.middleware = [];

    config.session = {
        key: 'ryansecreat',
        maxAge: 24 * 3600 * 1000, // 7 天,
        httpOnly: true,
        encrypt: true,
    };
    config.cluster = {
        listen: {
            port: 8080,
            hostname: '127.0.0.1',

        }
    };
    return config;
};
